﻿using System;
using System.ComponentModel.DataAnnotations;

namespace smp.ButterflyCakes.Models.FormModels.Order
{
    public class OrderSummaryModel : IOrderModel
    {
        [Required]
        public Guid OrderId { get; set; }

        [Required]
        public Guid ComponentId { get; set; }

        [Required]
        public string Title { get; set; }

        public string Summary { get; set; }

        [Required]
        public DateTime? Due { get; set; }

        public string DueDisplay
        {
            get
            {
                return Due.HasValue ? Due.Value.ToString("dd-MMMM-yyyy") : null;
            }
        }
    }
}
